	<?php
		$languages = Languages::model()->getLanguages();
		$langs = array();
		foreach ($languages as $lang)
		{
			$langs[$lang['code']] = $lang['name'];
		}
	
	?>

	<div class="row clear">
		<?php echo $form->label($model,'defaultLang'); ?>
		<?php echo $form->dropDownList($model, '['.$type.']defaultLang', $langs); ?>
		<?php echo $form->error($model,'defaultLang'); ?>
	</div>	

	<div class="row clear">
		<?php echo $form->label($model,'adminDefaultLang'); ?>
		<?php echo $form->dropDownList($model, '['.$type.']adminDefaultLang', $langs); ?>
		<?php echo $form->error($model,'adminDefaultLang'); ?>
	</div>	

